﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class MoralityItem
	{
		public MoralityItem()
		{
			m_RID = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region TypeID
		
		private int? m_TypeID;
		
		public int? TypeID
		{
			get { return m_TypeID; }
			set { m_TypeID = value; }
		}
		
		#endregion
		
		#region HistoryID
		
		private int? m_HistoryID;
		
		public int? HistoryID
		{
			get { return m_HistoryID; }
			set { m_HistoryID = value; }
		}
		
		#endregion
		
		#region Caption
		
		private string m_Caption;
		
		public string Caption
		{
			get { return m_Caption; }
			set { m_Caption = value; }
		}
		
		#endregion
		
		#region Index
		
		private int? m_Index;
		
		public int? Index
		{
			get { return m_Index; }
			set { m_Index = value; }
		}
		
		#endregion
		
		#region Type
		
		private int m_Type;
		
		public int Type
		{
			get { return m_Type; }
			set { m_Type = value; }
		}
		
		#endregion
		
		#region Operator
		
		private int? m_Operator;
		
		public int? Operator
		{
			get { return m_Operator; }
			set { m_Operator = value; }
		}
		
		#endregion
		
		#region Param

        private double? m_Param;

        public double? Param
		{
			get { return m_Param; }
			set { m_Param = value; }
		}
		
		#endregion


        #region SchoolMark

        private string schoolmark;

        public string SchoolMark
        {
            get { return schoolmark; }
            set { schoolmark = value; }
        }

        #endregion
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			MoralityItem castObj = (MoralityItem) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 48;
			hash = hash * 48
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}

    public class MoralityItemView : MoralityItem
    {
        private string _moralityTypeName;

        public string MoralityTypeName
        {
            get { return _moralityTypeName; }
            set { _moralityTypeName = value; }
        }
    }
}